var schoolArrr = localStorage.getItem("schoolArr");
var schoolArr = JSON.parse(schoolArrr);

var cityArrr = localStorage.getItem("cityArr");
var cityArr = JSON.parse(cityArrr);

for (var i = 0; i < cityArr.length; i++) {
    // 通过审核、接洽中。待审、未通过、推广
    var pass = negotiate = wait = not_pass = extend = 0;
    for (var j = 0; j < schoolArr.length; j++) {
        if (schoolArr[j].cityId == cityArr[i].cityId) {
            switch (schoolArr[j].status) {
                case '审核已通过':
                    pass++;
                    break;
                case '接洽中':
                    negotiate++;
                    break;
                case '待审':
                    wait++;
                    break;
                case '审核未通过':
                    not_pass++;
                    break;
                case '推广开展':
                    extend++;
                    break;
                default:
                    break;
            }
        }
    }
    $('tbody').append(
        `
        <tr>
            <td>${cityArr[i].cityName}</td>
            <td>${pass}</td>
            <td>${negotiate}</td>
            <td>${wait}</td>
            <td>${not_pass}</td>
            <td>${extend}</td>
        </tr>
        `
    )
}